package com.jiudengnile.liushu.biz.dal.dao;

import java.util.List;

import com.jiudengnile.liushu.biz.domains.permission.PermissionDO;
import com.jiudengnile.liushu.biz.query.ListWithTotalCount;
import com.jiudengnile.liushu.biz.query.PermissionQuery;

public interface PermissionDAO {
	
	public long create(PermissionDO permission);

	public void delete(long id);

	public void update(PermissionDO permission);

	public PermissionDO queryById(long id);
	
	public PermissionDO queryByCode(String code);
	
	public List<PermissionDO> queryByIds(List<Long> ids);
	
	public ListWithTotalCount<PermissionDO> queryForPage(PermissionQuery permissionQuery);

}
